package com.dek.seckill.common.exception;

import com.dek.seckill.common.util.CodeMsg;

public class ServiceException extends RuntimeException {

    private CodeMsg codeMsg;

    public ServiceException(CodeMsg codeMsg) {
        super(codeMsg.getMsg());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
